#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QVector>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    bool IsEnglish(QByteArray arr);
    bool Istxt(QString houzhui);
    bool IsSize(int size);
    void readStopWord(QString filename);
    QString path;
    int index;
    QVector<QString> stopWord; //记录停止词


signals:
    void SendData(QString path,int index);

};

#endif // MAINWINDOW_H
